#ifndef OPERPROCESSWIDGET_H
#define OPERPROCESSWIDGET_H

#include <QWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QGridLayout>
#include <QLabel>
#include <QTableWidget>
#include <QHeaderView>

#include "CommonContainer.h"

class OperProcessWidget : public CommonContainer
{
    Q_OBJECT

public:
    explicit OperProcessWidget(QWidget *parent = nullptr);
    ~OperProcessWidget();

    void setStageItem(int row, int column, const QString& text);
    QString stageItem(int row, int column) const;

    void setTotalItem(int row, int column, const QString& text);
    QString totalItem(int row, int column) const;

private:
    void setupUI();
    void setupConnections();
    void setupStageTable();
    void setupTotalTable();
    
    QGridLayout *m_mainLayout;
    
    QTableWidget *m_stageTable;
    QTableWidget *m_totalTable;
};

#endif // OPERPROCESSWIDGET_H
